﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Configurations.Core
{
    class XmlConstraintProperty<T>
    {
        string elementName;
        string propertyName;
        T propertyValue;
        string format;

        public XmlConstraintProperty(string elementName,
            string propertyName, T propertyValue, string format)
        {
            this.elementName = elementName;
            this.propertyName = propertyName;
            this.propertyValue = propertyValue;
            this.format = format;
        }

        public string ElementName
        {
            get { return elementName; }
        }
        public string PropertyName
        {
            get { return propertyName; }
        }
        public object PropertyValue
        {
            get { return propertyValue; }
        }
        public T GenericPropertyValue
        {
            get
            {
                return propertyValue;
            }
        }
        public string Format
        {
            get { return format; }
        }
    }
}
